export default function (file, name) {
    const a = document.createElement("a");
    a.href = URL.createObjectURL(file);
    a.download = name;
    a.click();
    URL.revokeObjectURL(a.href);
    a.remove();
    console.log("%c 下载完成", "color:green");
}
